Advertisement
Guest User

Untitled

a guest
Jul 5th, 2022
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. import sys
  3. import linuxcnc
  4. try:
  5. s = linuxcnc.stat() # create a connection to the status channel
  6. s.poll() # get current values
  7. except linuxcnc.error:
  8. #print("error", detail)
  9. sys.exit(1)
  10. for x in dir(s):
  11. if not x.startswith("_"):
  12. print(x, getattr(s,x))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement